package com.huatai.bi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.bi.entity.BigScreenPageVersionEntity;

import java.util.List;

/**
* @author hecai
* @description 针对表【big_screen_page_version(态势模板版本)】的数据库操作Service
* @createDate 2024-06-20 14:20:34
*/
public interface BigScreenPageVersionService extends IService<BigScreenPageVersionEntity> {

    /**
     * 根据code获取版本信息
     * @param code
     * @return
     */
    BigScreenPageVersionEntity getScreenVersionByCode(String code);

    /**
     * 根据上级目录获取版本信息
     * @param code
     * @return
     */
    BigScreenPageVersionEntity getScreenVersionByParentCode(String code);

    /**
     * 获取历史版本
     * @param parentCode
     * @return
     */
    List<BigScreenPageVersionEntity> getHistoryVerison(String parentCode);
}
